ConcurrentStack(T) Methods

Task Parallel System.Threading

The ConcurrentStack<(Of <(T>)>) type exposes the following members.

Methods

  NameDescription
Clear
Removes all objects from the ConcurrentStack<(Of <(T>)>).
CopyTo
Copies the ConcurrentStack<(Of <(T>)>) elements to an existing one-dimensional Array, starting at the specified array index.
Equals (Inherited from Object.)
Finalize (Inherited from Object.)
GetEnumerator
Returns an enumerator that iterates through the ConcurrentStack<(Of <(T>)>).
GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
Push
Inserts an object at the top of the ConcurrentStack<(Of <(T>)>).
PushRangeOverloaded.
ToArray
Copies the items stored in the ConcurrentStack<(Of <(T>)>) to a new array.
ToString (Inherited from Object.)
TryPeek
Attempts to return an object from the top of the ConcurrentStack<(Of <(T>)>) without removing it.
TryPop
Attempts to pop and return the object at the top of the ConcurrentStack<(Of <(T>)>).
TryPopRangeOverloaded.

Explicit Interface Implementations

  NameDescription
ICollection..::.CopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
IEnumerable..::.GetEnumerator
Returns an enumerator that iterates through a collection.
IProducerConsumerCollection<(Of <(T>)>)..::.TryAdd
Attempts to add an object to the IProducerConsumerCollection<(Of <(T>)>).
IProducerConsumerCollection<(Of <(T>)>)..::.TryTake
Attempts to remove and return an object from the IProducerConsumerCollection<(Of <(T>)>).

See Also